package com.bao.ServiceImpl;

import com.bao.Dao.UserDao;
import com.bao.DaoImpl.UserDaoImpl;
import com.bao.Emtity.User;
import com.bao.Service.UserService;

import java.util.List;

/**
 * Created by TangBaoshan on 2018/8/11.
 */
public class UserServiceImpl implements UserService{
    @Override
    public List<User> findUser() {
        UserDao dao=new UserDaoImpl();
        return dao.findUser();
    }

    @Override
    public List<User> findTypeUser(String name) {
        UserDao dao=new UserDaoImpl();
        return dao.findTypeUser(name);
    }

    @Override
    public int AddUser(User u) {
        UserDao dao=new UserDaoImpl();
        return dao.AddUser(u);
    }

    @Override
    public int Findid(String name) {
        UserDao dao=new UserDaoImpl();
        return dao.Findid(name);
    }

    @Override
    public int FindCountUser(String openid) {
        UserDao dao=new UserDaoImpl();
        return dao.FindCountUser(openid);
    }

    @Override
    public int FindCountUName(String name) {
        UserDao dao=new UserDaoImpl();
        return dao.FindCountUName(name);
    }
}
